package me.luger.project.fof.controller.api;

import me.luger.core.commom.util.StringUtil;
import me.luger.core.mvc.controller.BaseController;
import me.luger.core.mvc.entity.Result;
import me.luger.project.fof.service.AdminUserService;
import org.apache.commons.collections.map.HashedMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * AdminUser controller
 */
@Controller
@RequestMapping("/api/fof/adminUser")
public class AdminUserApiController extends BaseController {

    @Autowired
    private AdminUserService adminUserService;

    @RequestMapping(value = "",name = "接口描述")
    @ResponseBody
    public Object demo(){
        try{
            String s = "<p>您的音乐包已过期，X首已下载的付费歌曲将不能离线播放，<a href=\"http://vip1.kuwo.cn/vip/added/vip_2016/index.jsp?from=1\" target=\"_blank\">续费></a></p>";
            s = StringUtil.escape(s);
            Map<String,String> map = new HashedMap();
            map.put("info",s);
            return Result.success(map);
        }catch (Exception e){
            return Result.error();
        }
    }
}
